<template>
  <div>
    <button @click="isShow = !isShow">显示/隐藏元素</button>
    
    <transition 
    enter-active-class="animate__fadeInDown"
    leave-active-class="animate__fadeOutDown"
    >
    <div class="box animate__animated" v-show="isShow"></div>
    </transition>
  </div>
  
</template>

<script>
export default {
  name: "App",
  data() {
    return {
      isShow:true,
    }
  },
  }
  
</script>

<style scoped>
.box{
  width: 100px;
  height: 100px;
  background: red;
}


</style>
